package marketmembermgr;

public class MemberCard {
		private String holderName;
		private int cardNum;
		private String password;
		private int integral;
		private String opeanCardDate;
		
		public MemberCard() {
			super();
		}
		
		public MemberCard(String holderName, int cardNum, String password, int integral, String opeanCardDate) {
			super();
			this.holderName = holderName;
			this.cardNum = cardNum;
			this.password = password;
			this.integral = integral;
			this.opeanCardDate = opeanCardDate;
		}

		public String getHolderName() {
			return holderName;
		}

		public void setHolderName(String holderName) {
			this.holderName = holderName;
		}

		public int getCardNum() {
			return cardNum;
		}
		public void setCardNum(int cardNum) {
			this.cardNum = cardNum;
		}
		public String getPassword() {
			return password;
		}
		public void setPassword(String password) {
			this.password = password;
		}
		public int getIntegral() {
			return integral;
		}
		public void setIntegral(int integral) {
			this.integral = integral;
		}
		public String getOpeanCardDate() {
			return opeanCardDate;
		}
		public void setOpeanCardDate(String opeanCardDate) {
			this.opeanCardDate = opeanCardDate;
		}
		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result + cardNum;
			result = prime * result + ((password == null) ? 0 : password.hashCode());
			return result;
		}
		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			MemberCard other = (MemberCard) obj;
			if (cardNum != other.cardNum)
				return false;
			if (password == null) {
				if (other.password != null)
					return false;
			} else if (!password.equals(other.password))
				return false;
			return true;
		}
}
